

 <%@page import="be.webchess.www.model.User"%>
<div id="art-page-background-simple-gradient">
        <div id="art-page-background-gradient"></div>
    </div>
    <div id="art-main">
        <div class="art-sheet">
            <div class="art-sheet-tl"></div>
            <div class="art-sheet-tr"></div>
            <div class="art-sheet-bl"></div>
            <div class="art-sheet-br"></div>
            <div class="art-sheet-tc"></div>
            <div class="art-sheet-bc"></div>
            <div class="art-sheet-cl"></div>
            <div class="art-sheet-cr"></div>
            <div class="art-sheet-cc"></div>
            <div class="art-sheet-body">
                <div class="art-header">
                    <div class="art-header-png"></div>
                    <div class="art-header-jpeg"></div>
                    <div class="art-logo">
                        <h1 id="name-text" class="art-logo-name"><a href="#">Web Chess</a></h1>
                        <div id="slogan-text" class="art-logo-text">Online chess game</div>
                    </div>
                </div>
                
                
           <%
           
          // HttpSession sess = request.getSession();
           
           
           if(session.getAttribute("loggedUser") == null) 
           {
           
           %>   
               <div id="content"><div id="connexion" class="con">
<a href="#">Login</a>
</div></div>
<div id="layer1">
		<div id="layer1_handle">			
			<a href="#" id="close">[ x ]</a>
			Login
		</div>
		<div id="layer1_content">
		<table>
			<form id="layer1_form" method="post" action="<%=request.getAttribute("root_path")%>/doLogin">			
			<tr>
				<td>Login: </td><td><input  type="text" name="login"/></td>
			</tr>
			<tr>
				<td>Pass:</td> <td><input  type="password" name="pass"/></td>
			</tr>
			<tr>
				<td><input type="submit" name="submit" value="Submit" /></td><td><span style="margin-left:30px;"><a href="<%=request.getAttribute("root_path")%>/inscription">Inscription</a></span></td>
			</tr>
			</form>
			</table>
		</div>
	</div>	
	
	<%
	
           }else{
        	   
        	   %>
        	   
        	   
        	   <div id="content"><div id="connexion" class="con">
				<%=((User)session.getAttribute("loggedUser")).getLogin()%><a href="<%=request.getAttribute("root_path")%>/deco"> Deco</a>
				</div></div> 
				        	   
        	   
        	   
        	   
        	   <%
        	   
        	   
        	   
        	   
           }
	%>
                
                
                
                
                <div class="art-nav">
                	<div class="l"></div>
                	<div class="r"></div>
                	<ul class="art-menu">
                		<li>
                			<a href="${root_path}/home" class="active"><span class="l"></span><span class="r"></span><span class="t">Home</span></a>
                		</li>
                		<li>
                			<a href="${root_path}/chessBoard"><span class="l"></span><span class="r"></span><span class="t">ChessBoard</span></a>
                		</li>		
                		<li>
                			<a href="#"><span class="l"></span><span class="r"></span><span class="t">About</span></a>
                		</li>
                	</ul>
                </div>
                <div class="art-content-layout">
                    <div class="art-content-layout-row">
                        <div class="art-layout-cell art-content">
                            <div class="art-post">
                                <div class="art-post-body">
                            <div class="art-post-inner art-article">
                                            <div class="art-postmetadataheader">
                                                <h2 class="art-postheader">
                                                    ${title}
                                                </h2>
                                            </div>
                                            <div class="art-postcontent">
                                                <!-- article-content -->
                                                <br /><br />
